SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 67427: The METALIB procedure returns the error "Invalid connection string attribute : SCHEMA is required for this datasource"

DetailsHotfixAboutRate It

When you run PROC METALIB, you might receive the following message:

ERROR: CLI error trying to establish connection: Invalid connection string attribute : SCHEMA is required for this datasource

The error occurs when all of these conditions are met:

  • The database is Google BigQuery.
  • SCHEMA is specified as a LIBNAME statement option.
  • Hot Fix H5A003 has been applied to the system that is executing PROC METALIB.

The error occurs because PROC METALIB omits SCHEMA from the database connection options.

The error does not occur in other uses of the database, such as when accessing a table via a LIBNAME statement connection.

Circumvention

As a circumvention, append schema='My-Database-Schema' to the Credentials Path value in the server object's connection properties. Note that you should replace My-Database-Schema with your database scheme name in the string you append. This change ensures that SCHEMA is included when PROC METALIB uses the credentials path in its database connection, thus avoiding the error.

Here are the steps to use this circumvention:

  1. From within the Data Library Manager plug-in in SAS® Management Console, open the Library object's properties, and then click the Data Server tab.
  2. Make note of the values for the following fields, and then click Cancel to close the properties window. These values are needed for the next steps.
    • Database server
    • Database Schema Name
    • Connection
  3. From the Server Manager plug-in, select the Database server noted above. On the right, you should see one or more connections.
  4. Open the properties for the Connection noted above, and then click the Options tab.
  5. Edit the Credentials Path by appending the Database Schema Name noted above to the end. Here is an example: schema='My-Database-Schema'
  6. Click OK to save and close the properties.

Here is an example of the Credentials Path after adding the SCHEMA option:

Credentials Path within Database Connection properties

Click the Hot Fix tab in this note to access the hot fix for this issue.



Operating System and Release Information

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemBase SASz/OS9.4_M69.4_M79.4 TS1M69.4 TS1M7
z/OS 64-bit9.4_M69.4_M79.4 TS1M69.4 TS1M7
Microsoft® Windows® for x649.4_M69.4_M79.4 TS1M69.4 TS1M7
Microsoft Windows 8 Enterprise 32-bit9.4_M69.4_M79.4 TS1M69.4 TS1M7
Microsoft Windows 8 Enterprise x649.4_M69.4_M79.4 TS1M69.4 TS1M7
Microsoft Windows 8 Pro 32-bit9.4_M69.4_M79.4 TS1M69.4 TS1M7
Microsoft Windows 8 Pro x649.4_M69.4_M79.4 TS1M69.4 TS1M7
Microsoft Windows 8.1 Enterprise 32-bit9.4_M69.4_M79.4 TS1M69.4 TS1M7
Microsoft Windows 8.1 Enterprise x649.4_M69.4_M79.4 TS1M69.4 TS1M7
Microsoft Windows 8.1 Pro 32-bit9.4_M69.4_M79.4 TS1M69.4 TS1M7
Microsoft Windows 8.1 Pro x649.4_M69.4_M79.4 TS1M69.4 TS1M7
Microsoft Windows 109.4_M69.4_M79.4 TS1M69.4 TS1M7
Microsoft Windows Server 20089.4_M69.4_M79.4 TS1M69.4 TS1M7
Microsoft Windows Server 2008 R29.4_M69.4_M79.4 TS1M69.4 TS1M7
Microsoft Windows Server 2008 for x649.4_M69.4_M79.4 TS1M69.4 TS1M7
Microsoft Windows Server 2012 Datacenter9.4_M69.4_M79.4 TS1M69.4 TS1M7
Microsoft Windows Server 2012 R2 Datacenter9.4_M69.4_M79.4 TS1M69.4 TS1M7
Microsoft Windows Server 2012 R2 Std9.4_M69.4_M79.4 TS1M69.4 TS1M7
Microsoft Windows Server 2012 Std9.4_M69.4_M79.4 TS1M69.4 TS1M7
Microsoft Windows Server 20169.4_M69.4_M79.4 TS1M69.4 TS1M7
Microsoft Windows Server 20199.4_M69.4_M79.4 TS1M69.4 TS1M7
Windows 7 Enterprise 32 bit9.4_M69.4_M79.4 TS1M69.4 TS1M7
Windows 7 Enterprise x649.4_M69.4_M79.4 TS1M69.4 TS1M7
Windows 7 Home Premium 32 bit9.4_M69.4_M79.4 TS1M69.4 TS1M7
Windows 7 Home Premium x649.4_M69.4_M79.4 TS1M69.4 TS1M7
Windows 7 Professional 32 bit9.4_M69.4_M79.4 TS1M69.4 TS1M7
Windows 7 Professional x649.4_M69.4_M79.4 TS1M69.4 TS1M7
Windows 7 Ultimate 32 bit9.4_M69.4_M79.4 TS1M69.4 TS1M7
Windows 7 Ultimate x649.4_M69.4_M79.4 TS1M69.4 TS1M7
64-bit Enabled AIX9.4_M69.4_M79.4 TS1M69.4 TS1M7
64-bit Enabled Solaris9.4_M69.4_M79.4 TS1M69.4 TS1M7
HP-UX IPF9.4_M69.4_M79.4 TS1M69.4 TS1M7
Linux for x649.4_M69.4_M79.4 TS1M69.4 TS1M7
Solaris for x649.4_M69.4_M79.4 TS1M69.4 TS1M7
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.